package io.renren.modules.manage.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.manage.dao.PayLogCopyDao;
import io.renren.modules.manage.entity.PayLogCopyEntity;
import io.renren.modules.manage.service.PayLogCopyService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

@Service("payLogCopyService")
@Transactional(rollbackFor = Exception.class)
public class PayLogCopyServiceImpl extends ServiceImpl<PayLogCopyDao, PayLogCopyEntity> implements PayLogCopyService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PayLogCopyEntity> page = this.page(
                new Query<PayLogCopyEntity>().getPage(params),
                new QueryWrapper<PayLogCopyEntity>()
        );

        return new PageUtils(page);
    }

}
